//
//  Status.swift
//  ShangHaiWeiBo
//
//  Created by 蔡杰 on 16/3/1.
//  Copyright © 2016年 蔡杰. All rights reserved.
//

import Foundation
import YYModel
class Status: NSObject {
    
    
    var id: Int64 = 0
    var text: String?
    var created_at: String?
    
    var source: String?
    
    var user: User?
    
    var retweeted_status:Status?
    
    var pic_urls: [StatusPictures]?
    override var description: String {
    
        let keys = ["id", "text", "created_at", "source", "user","retweeted_status","pic_urls"]
        return dictionaryWithValuesForKeys(keys).description
    }
    class func modelContainerPropertyGenericClass() -> [String: AnyObject] {
        // 注意：在 Swift 中，完整的类名是 `项目名称(命名空间 namespace).类名`
        // 错误代码，不会崩溃，但是不能正常解析
        // return ["pic_urls": "StatusPictures"]
        // 一定注意：以下代码返回 nil
        // NSClassFromString("StatusPictures")
        return ["pic_urls": "ShangHaiWeiBo.StatusPictures"]
    }
}